package com.lanzhou.yuanfen.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author lcllge
 * @since 2019-12-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_visitor")
public class Visitor implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * IP
     */
    private String ip;

    /**
     * 用户ID: 可以留空
     */
    private Long userKey;

    /**
     * 是否点赞
     */
    private Boolean isThumb;

    /**
     * 访问时间
     */
    private LocalDateTime visitTime;

    /**
     * 其他字段
     */
    @TableField(exist = false)
    private Integer idNu;
    @TableField(exist = false)
    private Integer thumb;
    @TableField(exist = false)
    private String visitDate;

}
